<?php

$images_url = base_url('images');
$main_url = base_url('main');
$login_url = base_url('verify');

require "./lib/src/skey.php";
include "./lib/src/recaptchakey.php";
require "./lib/recaptcha/recaptchalib.php";

if(($uid != "") && ($uname != "") && ($lvl != ""))
{
	if($lvl == 1)
	{
		redirect(base_url('otakkanan'),'refresh');
		exit(0);
	}
	
	if($lvl == 2)
	{
		redirect(base_url('partner'),'refresh');
		exit(0);
	}
	
}

$isipage = '
	<div id="login">
				
		<div class="space"></div>
		<div id="login2">
			<div class="title"><span style="margin-top:10px">Pendaftaran</span></div>
			<div id="login3">
				<form action="'.$login_url.'/daftar" method="post" enctype="multipart/form-data">
					
					<ul>
						<li class="left">&nbsp; Nama</li>
						<li class="right"><input name="nama" type="text" placeholder="Nama Anda" autocomplete="off" size="30" /></li>
					</ul>
					<ul>
						<li class="left">&nbsp; Email</li>
						<li class="right"><input name="email" type="email" placeholder="Email Anda" autocomplete="off" size="30" /></li>
					</ul>
					<ul>
						<li class="left">&nbsp; Username (<strong>Untuk Login</strong>)</li>
						<li class="right"><input name="username" type="text" placeholder="username" autocomplete="off" size="30"></li>
					</ul>
					<ul>
						<li class="left">&nbsp; Password</li>
						<li class="right"><input name="password" type="password" placeholder="password" autocomplete="off" size="30"></li>
					</ul>
					<ul>
						<li class="left">&nbsp; Password (<strong>Konfirmasi</strong>)</li>
						<li class="right"><input name="password2" type="password" placeholder="password konfirmasi" autocomplete="off" size="30"></li>
					</ul>
					<ul>
						<li class="left">&nbsp; Saya </li>
						<li class="right">
							<select name="jk">
								<option value="1">Pria</option>
								<option value="0">Wanita</option>
							</select>
						</li>
					</ul>
					<ul>
						<li class="left">&nbsp; Masukan Captcha</li>
						<li class="right">'.recaptcha_get_html($publickey).'</li>
					<ul>
						<li class="left">&nbsp;</li>
						<li class="right">&nbsp;</li>
					</ul>
					<ul>
						<li class="left">&nbsp;</li>
						<li class="right">
							<div>Dengan mengklik tombol "Setuju dan Daftar" dibawah ini  saya menyatakan bahwa saya telah membaca dan menyetujui <a href="'.$main_url.'/kebijakanprivasi.html">Kebijakan dan Privasi</a>  Dadan Network.</div><br />
							<input type="submit" name="kirim" value="SETUJU DAN DAFTAR">
						</li>
					</ul>
					<ul>
						<li class="left">&nbsp;</li>
						<li class="right">&nbsp;</li>
					</ul>
					<ul>
						<li class="left">
							&nbsp;<a href="'.base_url('main/kirimkode.html').'" style="font-size:14px">Resend kode aktivasi?</a>
						</li>
						<li class="right">
						<a href="'.base_url('main/lupapass.html').'" style="font-size:14px">Lupa password</a> |   
						<a href="'.base_url('main/login.html').'" style="font-size:14px">Sudah punya akun?</a>
						</li>
					</ul>
					<ul>
						<li class="left">&nbsp;</li>
						<li class="right">&nbsp;</li>
					</ul>
				</form>
				
			</div>
		</div>
		

		<div class="space"></div>

	</div>
';

$data['isi_page'] = $isipage;
$data['site_title'] = 'Daftar - Dadan Network';
$data['base_url'] = base_url();
$data['tahun_sekarang'] = date("Y");

$data['other_head'] = '';

$this->parser->parse('template/login', $data);

/* End of file daftar.php */
/* Location: ./application/views/main/login.php */
